Beginning MATLAB and Simulink by Sulaymon Eshkabilov

Beginning MATLAB and Simulink by Sulaymon Eshkabilov

Author:Sulaymon Eshkabilov
Language: eng
Format: epub
ISBN: 9781484250617
Publisher: Apress


The get() command collects data from handles.Xmin and handles.Xmax as a string and then str2double() converts them into a numerical format. Double-formatted values of Xmin and Xmax are taken to generate equally spaced values of the variable x, which are then taken to compute f(x) = sinc(πx) and plot the results using the following commands:x=linspace(Xmin, Xmax, 200); f=sinc(x*pi); plot(x, f, 'b');

grid on

title('sinc(\pi*x) = sin(\pi*x)/(\pi*x) ')

xlabel('x'),ylabel('f(x)=sinc(\pi*x)'),

axis([Xmin, Xmax, -.25, 1.1])



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.